package com.syn.synold4s.activity.setting;

import android.webkit.WebSettings;
import android.webkit.WebViewClient;

import androidx.activity.result.ActivityResult;

import com.gaoyi.basemodule.baseUtil.WindowUtil;
import com.syn.synold4s.activity.base.BaseAlertViewActivity;
import com.syn.synold4s.databinding.ActivityPrivacyBinding;

import java.util.Map;

public class PrivacyActivity extends BaseAlertViewActivity<ActivityPrivacyBinding> {

    @Override
    protected void initData() {
        WindowUtil.setWindowDecorView(this);
        mBinding.settingToolbar.setOnBackListener(this::finish);
        WebSettings settings = mBinding.webView.getSettings();
        settings.setJavaScriptEnabled(true);
        settings.setDomStorageEnabled(true);
        mBinding.webView.setWebViewClient(new WebViewClient());
        mBinding.webView.loadUrl("http://synergosiot.ddns.net/privacy/");
    }

    @Override
    protected ActivityPrivacyBinding getViewBinding() {
        return ActivityPrivacyBinding.inflate(getLayoutInflater());
    }

    @Override
    protected void onRequestPermissionsResult(Map<String, Boolean> result) {

    }

    @Override
    protected void onActivityResult(int requestCode, ActivityResult result) {

    }
}